using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmDcCommandDtls")]
    public class DcCommandDtls
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "CmdDtlsId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public int CmdDtlsId { get; set; }

		[ForeignKey("Cmd")]
		[DataMember, Display(Name = "CmdId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> CmdId { get; set; }

		[DataMember, Display(Name = "CmdName", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string CmdName { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> EmpId { get; set; }

		[ForeignKey("Pos")]
		[DataMember, Display(Name = "PosId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> PosId { get; set; }

		[DataMember, Display(Name = "PosRef", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string PosRef { get; set; }

		[DataMember, Display(Name = "PosName", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string PosName { get; set; }

		[ForeignKey("Class")]
		[DataMember, Display(Name = "ClassId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> ClassId { get; set; }

		[ForeignKey("JobSite")]
		[DataMember, Display(Name = "JobSiteId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> JobSiteId { get; set; }

		[DataMember, Display(Name = "JobSiteName", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string JobSiteName { get; set; }

		[DataMember, Display(Name = "Salary", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<double> Salary { get; set; }

		[DataMember, Display(Name = "DeductPercent", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<decimal> DeductPercent { get; set; }

		[DataMember, Display(Name = "DeductLevel", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<decimal> DeductLevel { get; set; }

		[DataMember, Display(Name = "DeductAmount", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<double> DeductAmount { get; set; }

		[DataMember, Display(Name = "DeductSalary", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<double> DeductSalary { get; set; }

		[DataMember, Display(Name = "CmmType", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string CmmType { get; set; }

		[DataMember, Display(Name = "CmmRefNo", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string CmmRefNo { get; set; }

		[DataMember, Display(Name = "CmmDate", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<System.DateTime> CmmDate { get; set; }

		[DataMember, Display(Name = "CmmDeductPercent", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<decimal> CmmDeductPercent { get; set; }

		[DataMember, Display(Name = "CmmLevel", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<decimal> CmmLevel { get; set; }

		[ForeignKey("CmmPenalty")]
		[DataMember, Display(Name = "CmmPenaltyId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> CmmPenaltyId { get; set; }

		[ForeignKey("PenLevel")]
		[DataMember, Display(Name = "PenLevelId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> PenLevelId { get; set; }

		[DataMember, Display(Name = "KopoRefNo", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string KopoRefNo { get; set; }

		[DataMember, Display(Name = "StartDate", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<System.DateTime> StartDate { get; set; }

		[DataMember, Display(Name = "EndDate", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<System.DateTime> EndDate { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "DeductMonth", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<decimal> DeductMonth { get; set; }

		[DataMember, Display(Name = "CmmMonth", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<decimal> CmmMonth { get; set; }

		[DataMember, Display(Name = "CrimeDescr", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string CrimeDescr { get; set; }

		[DataMember, Display(Name = "CrimeSection", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string CrimeSection { get; set; }

		[DataMember, Display(Name = "CrimeYear", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> CrimeYear { get; set; }

		[DataMember, Display(Name = "ClassName", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public string ClassName { get; set; }

		[ForeignKey("Pen")]
		[DataMember, Display(Name = "PenId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> PenId { get; set; }

		[ForeignKey("Crd")]
		[DataMember, Display(Name = "CrdId", ResourceType = typeof(Resources.DcCommandDtlsResource))]
        public Nullable<int> CrdId { get; set; }

		public virtual HRM.PsCommand Cmd { get; set; }

		public virtual HRM.Employee Emp { get; set; }

		public virtual HRM.Position Pos { get; set; }

		public virtual MpClass Class { get; set; }

		public virtual HRM.JobSite JobSite { get; set; }

		public virtual HRM.PsCommand CmmPenalty { get; set; }

		public virtual DcPenaltyLevel PenLevel { get; set; }

		public virtual DcPenalty Pen { get; set; }

		public virtual HRM.DcCrimeDtls Crd { get; set; }

    }
}